import { all } from "redux-saga/effects";
import watchCategories from "./sagas/categoriesSagas";
import watchUsers from './sagas/userSaga'

//通过 all() 方法来实现对所有侦听函数的并行启动
function* rootSaga(){
    yield all([watchCategories(),watchUsers()])
}

export default rootSaga